<?php

namespace App\Http\Controllers\applet_api;

use App\Http\Controllers\Controller;
use App\Models\ApplyEnroll;
use Illuminate\Http\Request;

class EnrollController extends Controller
{

    public function store(Request $Request)
    {
        $data = new ApplyEnroll();
        $data->name = $Request->name;
        $data->tell = $Request->tell;
        $data->position = $Request->position;
        $data->train_id = $Request->id;
        $data->create_time = time();
        $data->update_time = time();
        $data->save();
        return response()->json(['code' => '200', 'msg' => 'success','data'=>$data]);
    }

}
